import './assets/style/common.scss'

import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from "./router";
import * as ElementPlusIconsVue from '@element-plus/icons-vue' 
import App from './App.vue'

// 创建应用
const app = createApp(App)
//全局注册ElementPlus内置的icon
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
app.use(ElementPlus)
app.use(router)
// 挂载应用
app.mount('#app')